<template>
	<view class="invite-box">
		<view  @click="open">
			测试组件
		</view>
		<u-popup :show="show" mode="center" @close="close">
			<view>
				<text>人生若只如初见，何事秋风悲画扇</text>
			</view>
		</u-popup>
	</view>
</template>

<script lang="ts" setup>
	import { ref,onMounted } from 'vue';
	const show = ref(false);
	onMounted(()=>{
		open()
	})
	const open = () => {
		show.value = true
	}
	const close = () => {
		show.value = false
	}
	
</script>

<style>
</style>